package com.javasoft.service.XGX._interface;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.javasoft.entity.XGX.Practice;
import com.javasoft.entity.XGX.Question;
import com.javasoft.entity.XGX.WrongQuestion;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface WrongTableService extends IService<WrongQuestion> {





    //用户可输入科目, 知识点, 难度, 题型, 数量等查询错题表
    Page<WrongQuestion> searchWrongTable(Long questionId,
                                        String subject,
                                        String knoPoint,
                                         String type,
                                         String des,
                                         Integer difRank,
                                        Integer currentPage,
                                        Integer pageSize);


    //根据科目生成训练题
    Page<Practice> getPracticeByWrongTable(String subject,Integer currentPage,
                                                Integer pageSize);

    public Page<WrongQuestion> getAllData(Integer currentPage, Integer pageSize);

    //保存题目进错题库
    String saveOrUpdateById(Long id);

    String saveOrUpdateByBody(WrongQuestion wrongQuestion);

    //删除错题
    String deleteBatchIds(List<Integer> ids);


}
